package com.party.domain;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @author Caizhf
 * @date 2017年6月12日下午6:17:56
 * @version v.0.1
 * @email 1115054416@qq.com 
 *
 * <p>Description: 购物清单</p>
 *
 */
public class ShopCart {
	private Integer spid;			//主键
	private String productType;		//商品类型
	private Integer productId;		//商品主键
	private Integer number;			//商品需要的数量
	private String ordersNum;		//订单号
	private Integer ordersState;	//订单状态
	private Date ctime;				//创建时间（只有发送了预约请求才会有时间）
	//---------以下是下单才有的
	private String activityTime;		//活动时间
	private String contactPhone;	//联系人号码
	private String contactUser;		//联系人姓名
	private String contactNotes;	//备注
	private Double actualPay;		//当前产品实际支付金额（因为有优惠券存在）
	//----------------
	private User user;				//创建的用户
	private Admin admin;			//商家
	
	public Integer getSpid() {
		return spid;
	}
	public void setSpid(Integer spid) {
		this.spid = spid;
	}
	public String getProductType() {
		return productType;
	}
	public void setProductType(String productType) {
		this.productType = productType;
	}
	public Integer getProductId() {
		return productId;
	}
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public String getOrdersNum() {
		return ordersNum;
	}
	public void setOrdersNum(String ordersNum) {
		this.ordersNum = ordersNum;
	}
	public Integer getOrdersState() {
		return ordersState;
	}
	public void setOrdersState(Integer ordersState) {
		this.ordersState = ordersState;
	}
	public Date getCtime() {
		return ctime;
	}
	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Admin getAdmin() {
		return admin;
	}
	public void setAdmin(Admin admin) {
		this.admin = admin;
	}
	
	public String getActivityTime() {
		return activityTime;
	}
	public void setActivityTime(String activityTime) {
		this.activityTime = activityTime;
	}
	public String getContactPhone() {
		return contactPhone;
	}
	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}
	public String getContactUser() {
		return contactUser;
	}
	public void setContactUser(String contactUser) {
		this.contactUser = contactUser;
	}
	public String getContactNotes() {
		return contactNotes;
	}
	public void setContactNotes(String contactNotes) {
		this.contactNotes = contactNotes;
	}
	public Double getActualPay() {
		return actualPay;
	}
	public void setActualPay(Double actualPay) {
		this.actualPay = actualPay;
	}
	@Override
	public String toString() {
		return "ShopCart [spid=" + spid + ", productType=" + productType + ", productId=" + productId + ", number="
				+ number + ", ordersNum=" + ordersNum + ", ordersState=" + ordersState + ", ctime=" + ctime
				+ ", activityTime=" + activityTime + ", contactPhone=" + contactPhone + ", contactUser=" + contactUser
				+ ", contactNotes=" + contactNotes + ", actualPay=" + actualPay + ", user=" + user + ", admin=" + admin
				+ "]";
	}
	
}
